package com.ludi;

import com.ludi.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:spring-context.xml","classpath:spring-aop-annotation.xml"})
public class MyTest2 {
    @Resource
    private UserService userService;
    @Test
    public void test01(){
        userService.login();
        System.out.println("============");
        userService.logout();
    }
}
